package com.zt.rongda.reimburse.model;

import com.zt.rongda.reimburse.service.ReimburseBillService;
import com.zt.rongda.util.JSONUtil;
import com.zt.system.model.Entity;
import net.sf.json.JSONObject;

import java.io.Serializable;

public class ReimburseBill extends Entity implements Serializable {

    private String reimburseId;

    private String orderId;

    private String reimburseUsage;

    private String reimburseType;

    private String reimburseCount;

    private Double totalAmount;

    private String deptId;

    private String empId;

    private String status;

    private static final long serialVersionUID = 1L;

    public String getReimburseId() {
        return reimburseId;
    }

    public void setReimburseId(String reimburseId) {
        this.reimburseId = reimburseId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getReimburseUsage() {
        return reimburseUsage;
    }

    public void setReimburseUsage(String reimburseUsage) {
        this.reimburseUsage = reimburseUsage;
    }

    public String getReimburseType() {
        return reimburseType;
    }

    public void setReimburseType(String reimburseType) {
        this.reimburseType = reimburseType;
    }

    public String getReimburseCount() {
        return reimburseCount;
    }

    public void setReimburseCount(String reimburseCount) {
        this.reimburseCount = reimburseCount;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public JSONObject toJsonObject(){
        JSONObject json = JSONObject.fromObject(this, JSONUtil.getJsonConfig());
        //添加启动流程的时候需要用的businessId
        json.put("id",json.getString("reimburseId"));
        json.put("_service", ReimburseBillService.BEAN_ID);

        return json;
    }


}